package com.zr.model;
// Generated 2017-7-6 10:10:11 by Hibernate Tools 4.0.0.Final

import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * Cdisstation generated by hbm2java
 */
@Entity
@Table(name = "cdisstation", catalog = "cqlwlps")
public class Cdisstation implements java.io.Serializable {

	private Integer disid;
	private Cstationtype cstationtype;
	private Cuser cuser;
	private String disname;
	private String disscope;
	private Double disprice;
	private Integer instation;
	private Set<Ctrapri> ctraprisForDisid2 = new HashSet<Ctrapri>(0);
	private Set<Ctrapri> ctraprisForDisid1 = new HashSet<Ctrapri>(0);
	
	private Double fkgc;
	private Double subkilogramme;
	private Double mtm;
	
	@Column(name = "fkgc", precision = 22, scale = 0)	
	public Double getFkgc() {
		return fkgc;
	}

	public void setFkgc(Double fkgc) {
		this.fkgc = fkgc;
	}
	@Column(name = "subkilogramme", precision = 22, scale = 0)	
	public Double getSubkilogramme() {
		return subkilogramme;
	}

	public void setSubkilogramme(Double subkilogramme) {
		this.subkilogramme = subkilogramme;
	}
	@Column(name = "mtm", precision = 22, scale = 0)	
	public Double getMtm() {
		return mtm;
	}

	public void setMtm(Double mtm) {
		this.mtm = mtm;
	}


	public Cdisstation() {
	}

	public Cdisstation(Cstationtype cstationtype, String disname) {
		this.cstationtype = cstationtype;
		this.disname = disname;
	}

	public Cdisstation(Cstationtype cstationtype, Cuser cuser, String disname, String disscope, Double disprice,
			Integer instation, Set<Ctrapri> ctraprisForDisid2, Set<Ctrapri> ctraprisForDisid1) {
		this.cstationtype = cstationtype;
		this.cuser = cuser;
		this.disname = disname;
		this.disscope = disscope;
		this.disprice = disprice;
		this.instation = instation;
		this.ctraprisForDisid2 = ctraprisForDisid2;
		this.ctraprisForDisid1 = ctraprisForDisid1;
		this.cstationtype = cstationtype;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "disid", unique = true, nullable = false)
	public Integer getDisid() {
		return this.disid;
	}

	public void setDisid(Integer disid) {
		this.disid = disid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "distypeid", nullable = false)
	public Cstationtype getCstationtype() {
		return this.cstationtype;
	}

	public void setCstationtype(Cstationtype cstationtype) {
		this.cstationtype = cstationtype;
	}


	@ManyToOne(fetch = FetchType.LAZY)


	@JoinColumn(name = "uid")
	public Cuser getCuser() {
		return this.cuser;
	}

	public void setCuser(Cuser cuser) {
		this.cuser = cuser;
	}

	@Column(name = "disname", nullable = false, length = 10)
	public String getDisname() {
		return this.disname;
	}

	public void setDisname(String disname) {
		this.disname = disname;

	}


	@Column(name = "disscope")
	public String getDisscope() {
		return this.disscope;
	}
	
	

	public void setDisscope(String disscope) {
		this.disscope = disscope;
	}
	
	


	@Column(name = "disprice", precision = 22, scale = 0)
	public Double getDisprice() {
		return this.disprice;
	}
	

	public void setDisprice(Double disprice) {
		this.disprice = disprice;
	}

	@Column(name = "instation")
	public Integer getInstation() {
		return this.instation;
	}

	public void setInstation(Integer instation) {
		this.instation = instation;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "cdisstationByDisid2")
	public Set<Ctrapri> getCtraprisForDisid2() {
		return this.ctraprisForDisid2;
	}

	public void setCtraprisForDisid2(Set<Ctrapri> ctraprisForDisid2) {
		this.ctraprisForDisid2 = ctraprisForDisid2;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "cdisstationByDisid1")
	public Set<Ctrapri> getCtraprisForDisid1() {
		return this.ctraprisForDisid1;
	}

	public void setCtraprisForDisid1(Set<Ctrapri> ctraprisForDisid1) {
		this.ctraprisForDisid1 = ctraprisForDisid1;
	}


}
